<%@LANGUAGE="VBSCRIPT"%> 
<!--#include file="functions.asp" -->

<SCRIPT Language="JavaScript">
var InvStatus='<%= request.querystring("InvStatus") %>';
var dsort='<%= request.querystring("dsort") %>';
var dorder='<%= request.querystring("dorder") %>';
var Location='<%= request.querystring("Location") %>';
var UserCoord='<%= request.querystring("UserCoord") %>';
var RefOrder='<%= request.querystring("refOrder") %>';
var VendorID='<%= request.querystring("VendorID") %>';
var CurSymbol='<%= request.querystring("CurSymbol") %>';
var RecDate='<%= request.querystring("RecDate") %>';
var RecDate2='<%= request.querystring("RecDate2") %>';
var RptCond='<%= request.querystring("RptCond") %>';
var PaidForm='<%= request.querystring("PaidForm") %>'

function DocLoad(){
//document.form1.reqInvoiceNo.focus();
}

function redirect(){
location='Inv_Detail.asp?seqnum=0&InvStatus='+InvStatus+'&dsort='+ dsort+'&dorder='+ dorder+'&Location='+Location+'&UserCoord='+UserCoord+'&RefOrder='+RefOrder+'&VendorID='+VendorID+'&CurSymbol='+CurSymbol+'&RecDate='+RecDate+'&RecDate2='+RecDate2+'&RptCond='+RptCond;
return false
}

function reroute(a,b){
location='Inv_Routing.asp?route='+a+ '&seqnum='+b+'&InvStatus='+InvStatus+'&dsort='+ dsort+'&dorder='+ dorder+'&Location='+Location+'&UserCoord='+UserCoord+'&RefOrder='+RefOrder+'&VendorID='+VendorID+'&CurSymbol='+CurSymbol+'&RecDate='+RecDate+'&RecDate2='+RecDate2+'&RptCond='+RptCond;
return false
}

function register(){
location='Inv_Register.asp?InvStatus='+InvStatus+'&dsort='+ dsort+'&dorder='+ dorder+'&Location='+Location+'&UserCoord='+UserCoord+'&RefOrder='+RefOrder+'&VendorID='+VendorID+'&CurSymbol='+CurSymbol+'&RecDate='+RecDate+'&RecDate2='+RecDate2+'&RptCond='+RptCond;
return false
}

</SCRIPT>
<!-- #include file="pagetop.asp" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td nowrap height="21" bgcolor="#FFFFFF" width="3%" background="images/menu_end.gif">&nbsp;</td>
    <td nowrap height="21" bgcolor="#FFFFFF" width="28"> 
      <div align="center"><img src="images/menu_awal_on.gif" width="28" height="33"></div>
    </td>
    <td width="10%" background="images/menuon.gif" height="21" nowrap> 
      <div align="center"><b class="menu">Invoice List</b></div>
    </td>
    <td nowrap height="21" width="28"><img src="images/menu_on_off_separator.gif" width="28" height="33"></td>
    <td width="10%" background="images/menuoff.gif" height="21" nowrap> 
      <div align="center"><b><a href="#" class="menu" onClick="return register()">Invoice 
        Register</a></b></div>
    </td>
    <td height="21" bgcolor="#FFFFFF" width="11"><img src="images/Menu_offend.gif" width="11" height="33"></td>
    <td height="21" bgcolor="#FFFFFF" background="images/menu_end.gif"> 
      <div align="right"><b></b></div>
    </td>
  </tr>
  <tr bgcolor="#93bee2"> 
    <td height="21" width="3%" bgcolor="#93bee2">&nbsp;</td>
    <td height="21" width="28" bgcolor="#93bee2">&nbsp;</td>
    <td width="10%" height="21" bgcolor="#93bee2">&nbsp;</td>
    <td height="21" width="28">&nbsp;</td>
    <td width="10%" height="21">&nbsp;</td>
    <td height="21">&nbsp;</td>
    <td height="21">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#93bee2">
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="2%">&nbsp;</td>
    <td> 
      <div align="right"> </div>
    </td>
  </tr>
  <tr> 
    <td width="4%" height="22">&nbsp;</td>
    <td width="2%" bgcolor="#FFFFFF" height="22"><img src="images/curv_data.gif" width="21" height="21"></td>
    <td bgcolor="#FFFFFF" height="22"><font color="#990000"></font></td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="2%" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">
      <form name="form1" method="get" action=<% if request("PaidForm")="Y" then response.Write("Inv_Payment.asp") else response.Write("InvListComment.asp") end if %>>
        <table width="100%" border="0" cellspacing="2" cellpadding="3">
          <tr> 
            <td width="20%" bgcolor="#dedede"> 
              <div align="right"><b>Invoice Status:</b></div>
            </td>
            <td width="3%">&nbsp;</td>
            <td> 
              <select name="InvStatus" class="drpdwn">
                <option value="0">All...</option>
                <option value="PARKED">PARKED</option>
                <option value="ROUTED">ROUTED</option>
                <option value="PREAPPROVED">PREAPPROVED</option>
				<option value="APPROVED W/O RECEIPT">APPROVED W/O RECEIPT</option>
                <option value="APPROVED">APPROVED</option>
                <option value="RELEASED">RELEASED</option>
                <option value="UPLOADED">UPLOADED</option>
                <option value="PAID">PAID</option>
                <option value="REJECTED">REJECTED</option>
                <option value="BLOCKED">BLOCKED</option>
              </select>
              <input type="hidden" name="dsort" value="<%= request.querystring("dsort") %>">
              <input type="hidden" name="dorder" value="<%= request.querystring("dorder") %>">
            </td>
          </tr>
          <tr>
            <td width="20%" bgcolor="#dedede">
              <div align="right"><b>Invoice Received Date:</b></div>
            </td>
            <td width="3%">&nbsp;</td>
            <td>
              <input type="text" name="RecDate" size="12" class="InputBox">
              <input type="button" name="Submit3" value=" ... " class="sbttn" onClick="javascript:show_calendar('form1.RecDate')">
              <select name="RptCond" class="drpdwn" onChange="redirect(this.options.selectedIndex)">
                <option value="1">Exact Date</option>
                <option value="2">On or Before This Date</option>
                <option value="3">On or After This Date</option>
                <option value="4">Between This Date And</option>
              </select>
              <script>
		  function redirect(x){
		  if (x == 3) {
		    document.form1.RecDate2.style.visibility='visible'
			document.form1.Submit5.style.visibility='visible'
		  }
		  else {
		    document.form1.RecDate2.style.visibility='hidden'
			document.form1.Submit5.style.visibility='hidden'
		  }
		  }
		  
		</script>
              <input type="text" name="RecDate2" style="visibility=hidden" size="12" class="InputBox">
              <input type="button" name="Submit5" value=" ... " class="sbttn" onClick="javascript:show_calendar('form1.RecDate2')" style="visibility=hidden">
            </td>
          </tr>
          <tr> 
            <td width="20%" bgcolor="#dedede"> 
              <div align="right"><b>Location:</b></div>
            </td>
            <td width="3%">&nbsp;</td>
            <td> 
              <input type="text" name="Location" size="12" class="InputBox">
              <input type="button" name="Button223" value=" ... " class="sbttn" onClick="openpopup('EmpList.asp?fName=form1.Location&fName2=form1.LocName&fName3=form1.Dept')" >
              <input type="text" name="LocName" size="30" class="InputBox">
              <input type="hidden" name="Dept">
            </td>
          </tr>
          <tr> 
            <td width="20%" bgcolor="#dedede"> 
              <div align="right"><b>User Coordinator:</b></div>
            </td>
            <td width="3%">&nbsp;</td>
            <td> 
              <input type="text" name="UserCoord" size="12" class="InputBox">
              <input type="button" name="Button2232" value=" ... " class="sbttn" onClick="openpopup('UCList.asp?fName=form1.UserCoord&fName2=form1.LocName2&fName3=form1.Dept2')" >
              <input type="text" name="LocName2" size="30" class="InputBox">
              <input type="hidden" name="Dept2">
            </td>
          </tr>
          <tr> 
            <td width="20%" bgcolor="#dedede"> 
              <div align="right"><b>Reference Order:</b></div>
            </td>
            <td width="3%">&nbsp;</td>
            <td> 
              <select name="RefOrder" class="drpdwn">
                <option value="0">All...</option>
                <option value="Y">Yes</option>
                <option value="N">No</option>
              </select>
            </td>
          </tr>
          <tr> 
            <td width="20%" bgcolor="#dedede"> 
              <div align="right"><b>Vendor:</b></div>
            </td>
            <td width="3%">&nbsp;</td>
            <td> 
              <input type="text" name="VendorID" size="12" class="InputBox">
              <input type="button" name="Button22" value=" ... " class="sbttn" onClick="openpopup('VendorList.asp?fName=form1.VendorID&fName2=form1.VendorName&fName3=form1.branch')" >
              <input type="text" name="VendorName" class="InputBox" size="35">
              <input type="hidden" name="branch">
            </td>
          </tr>
          <tr> 
            <td width="20%" bgcolor="#dedede"> 
              <div align="right"><b>Currency:&nbsp;</b></div>
            </td>
            <td width="3%">&nbsp;</td>
            <td> 
              <select name="CurSymbol" class="drpdwn">
                <option value="N">All</option>
                <option value="AUD">AUD</option>
                <option value="EUR">EUR</option>
                <option value="GBP">GBP</option>
                <option value="RUP">RUP</option>
                <option value="SGD">SGD</option>
                <option value="USD">USD</option>
              </select>
            </td>
          </tr>
          <tr> 
            <td width="20%"> 
              <div align="right"><b></b></div>
            </td>
            <td width="3%">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td width="20%" bgcolor="#dedede"> 
              <div align="right"><b><b>Action:</b></b></div>
            </td>
            <td width="3%">&nbsp;</td>
            <td> 
              <input type="submit" name="Submit" value=" Search... " class="sbttn">
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="2%" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table>
</body>
</html>
